package com.pss.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller 
public class JumpController{
	@Value("${page.path.name}")  
    private String name;  
      
      
    public void setName(String name) {  
        this.name = name;  
    }  

	@RequestMapping(value="${page.path.name}")  
	public String jumptest(HttpServletRequest request, HttpServletResponse response) throws IOException{
		System.out.println(name);
		return "angularuirout/main";  
	}

	@RequestMapping(value="angularuirout/jumpToHome")  
	public String jumpToHome(HttpServletRequest request, HttpServletResponse response) throws IOException{

		return "angularuirout/home";  
	}

	@RequestMapping(value="angularuirout/jumpToHomeList")  
	public String jumpToHomeList(HttpServletRequest request, HttpServletResponse response) throws IOException{

		return "angularuirout/homelist";  
	}
	@RequestMapping(value="angularuirout/jumpToAbout")  
	public String jumpToAbout(HttpServletRequest request, HttpServletResponse response) throws IOException{

		return "angularuirout/about";  
	}
	
	@RequestMapping(value="angularuirout/jumpToTabledata")  
	public String jumpToTabledata(HttpServletRequest request, HttpServletResponse response) throws IOException{

		return "angularuirout/tabledata";  
	}


}
